package org.edu.modules.research.rfunds.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.base.BaseEntity;
import java.math.BigDecimal;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

/**
 * entity-科研经费报销表
 */
@TableName
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="科研经费报销表对象", description="ve_jky_fund_claim")
public class VeJkyFundClaim extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "关联项目id")
    private Integer projectId;

    @TableField
    @ApiModelProperty(value = "申请人")
    private String userId;


    @TableField
    @ApiModelProperty(value = "申请人")
    private String userName;


    @TableField
    @ApiModelProperty(value = "申请人")
    private Integer jkyUserId;

    @TableField
    @ApiModelProperty(value = "添加时间")
    @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd")
    private Date createTime;

    @TableField
    @ApiModelProperty(value = "申请时间")
    @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd")
    private Date applyTime;

    @TableField
    @ApiModelProperty(value = "实际金额")
    private BigDecimal totalCost;

    @TableField
    @ApiModelProperty(value = "报销金额")
    private BigDecimal claimCost;

    @TableField
    @ApiModelProperty(value = "审批人")
    private Integer checkUid;

    @TableField
    @ApiModelProperty(value = "描述")
    @Length(max = 300)
    private String mark;
}
